﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_dept : AdminPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) {
            BindDept();
        }
    }
    /// <summary>
    /// 绑定部门
    /// </summary>
    private void BindDept() {
        List<Exam.Core.Model.Department> Departlist = new Exam.Core.DAL.Department().getDepartmentAllList();
        rp.DataSource = Departlist;
        rp.DataBind();
        LibStuCount.Text = Departlist.Count.ToString();
    }
}